cmake_minimum_required(VERSION 2.8)
project(pcl_test)

set(CMAKE_CXX_STANDARD 14)

find_package(PCL REQUIRED)
find_package(Boost 1.58 REQUIRED COMPONENTS date_time filesystem iostreams)

include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})

include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

add_executable (converttopcd convertToPCD.cpp)
target_link_libraries (converttopcd ${PCL_LIBRARIES})

add_executable (converttogrid convertToGrid.cpp)
target_link_libraries (converttogrid ${PCL_LIBRARIES})

add_executable (showpcd showpcd.cpp)
target_link_libraries (showpcd ${PCL_LIBRARIES} boost_filesystem)